
#include "point.h"

Point Point::operator+(Point &p2) {
    Point n;
    n.x = this->x + p2.x;
    n.y = this->y + p2.y;
    cout << "operator+ pn: " << &n << endl;
    return n;
}

Point Point::operator++() {
    cout << "operator ++p" << endl;
    this->x++;

    return *this;
}

Point Point::operator++(int a) {
    Point n = *this;
    cout << "operator p++" << endl;
    this->x++;
    return n;
}

